package com.film.financial.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.film.financial.mapper.StatisticsMapper;
import com.film.financial.domain.Statistics;
import com.film.financial.service.IStatisticsService;

/**
 * 财务统计Service业务层处理
 * 
 * *@author fy
 * @date 2025-02-17
 */
@Service
public class StatisticsServiceImpl implements IStatisticsService 
{
    @Autowired
    private StatisticsMapper statisticsMapper;

    /**
     * 查询财务统计
     * 
     * @param sId 财务统计主键
     * @return 财务统计
     */
    @Override
    public Statistics selectStatisticsBySId(Long sId)
    {
        return statisticsMapper.selectStatisticsBySId(sId);
    }

    /**
     * 查询财务统计列表
     * 
     * @param statistics 财务统计
     * @return 财务统计
     */
    @Override
    public List<Statistics> selectStatisticsList(Statistics statistics)
    {
        return statisticsMapper.selectStatisticsList(statistics);
    }

    /**
     * 新增财务统计
     * 
     * @param statistics 财务统计
     * @return 结果
     */
    @Override
    public int insertStatistics(Statistics statistics)
    {
        return statisticsMapper.insertStatistics(statistics);
    }

    /**
     * 修改财务统计
     * 
     * @param statistics 财务统计
     * @return 结果
     */
    @Override
    public int updateStatistics(Statistics statistics)
    {
        return statisticsMapper.updateStatistics(statistics);
    }

    /**
     * 批量删除财务统计
     * 
     * @param sIds 需要删除的财务统计主键
     * @return 结果
     */
    @Override
    public int deleteStatisticsBySIds(Long[] sIds)
    {
        return statisticsMapper.deleteStatisticsBySIds(sIds);
    }

    /**
     * 删除财务统计信息
     * 
     * @param sId 财务统计主键
     * @return 结果
     */
    @Override
    public int deleteStatisticsBySId(Long sId)
    {
        return statisticsMapper.deleteStatisticsBySId(sId);
    }
}
